home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-02 | 3.8 KB | 163 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: CyberSemanticInterface.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- * includes
- */
-
-
- #ifndef SOM_CyberSemanticInterface_xh
- #define SOM_CyberSemanticInterface_xh
-
- class CyberSemanticInterface;
-
- #define CyberSemanticInterface_MajorVersion 1
- #define CyberSemanticInterface_MinorVersion 0
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODSemanticInterface_xh
- #include <SemtIntB.xh>
- #endif
-
- #ifndef CyberSemanticInterface_API
- #define CyberSemanticInterface_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class ODFrame;
- class ODFacet;
- class SOMClass;
- class SOMObject;
- class ODObject;
- class ODExtension;
- class ODRefCntObject;
- class ODSemanticInterface;
- class ODSession;
- class ODPart;
- class ODDesc;
- class ODAppleEvent;
- class ODOSLToken;
- class ODDraft;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define CyberSemanticInterfaceCClassData CyberSemanticInterfaceClassData
- #define CyberSemanticInterfaceNewClass(major,minor) somNewVersionedClassReference(CyberSemanticInterface,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define CyberSemanticInterfaceMetaClass SOMClass
-
-
- /* The API to the CyberSemanticInterface class object, and the methods it introduces. */
- SOMEXTERN struct CyberSemanticInterfaceClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken SetDraft;
- } SOMDLINK CyberSemanticInterfaceClassData;
-
- #if !defined(CyberSemanticInterface_Class_Source) && !defined(SOM_Module_cybersemanticinterface_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list CyberSemanticInterfaceClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for CyberSemanticInterface Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_CyberSemanticInterface_SetDraft)(CyberSemanticInterface *somSelf, Environment *ev,
- ODDraft* inDraft);
- }
-
- #endif /* CyberSemanticInterface_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for CyberSemanticInterface
- */
- class CyberSemanticInterface : public ODSemanticInterface
- {
- public:
-
- // CyberSemanticInterface::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for CyberSemanticInterface, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(CyberSemanticInterface);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(CyberSemanticInterface);
- #endif
- }
-
- // CyberSemanticInterface::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: SetDraft */
- void SetDraft(Environment *ev,
- ODDraft* inDraft)
- {
- SOM_ResolveD(this,CyberSemanticInterface,CyberSemanticInterface,SetDraft)
- (this,ev,inDraft);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- }; /* CyberSemanticInterface */
-
-
-
- #endif /* SOM_CyberSemanticInterface_xh */
-